interface RECORDER_INTERFACE {
    getSampleRate(): number;
    getRecorderType(): number;
    isSupport(): boolean;
    start(): Promise<boolean>;
    stop(): Promise<boolean>;
    connect(): Promise<boolean>;
    disconnect(): Promise<boolean>;
    onDataReceive(fn: (data: any) => void): void;
    onError(fn: (e: any) => void): void;
}

enum RECORDER_TYPE {
    WEBM_RECORDER,
    WORKLET_RECORDER,
    SCRIPT_RECORDER
}

export { RECORDER_TYPE };
export type { RECORDER_INTERFACE };
